home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / src / Makefile < prev    next >
Encoding:
Makefile  |  1992-10-28  |  6.0 KB  |  248 lines

  1. #
  2. # $Header: /hdf/hdf/v3.2r2/src/RCS/Makefile,v 1.3 1992/10/28 20:21:42 koziol beta koziol $
  3. #
  4. # $Log: Makefile,v $
  5. # Revision 1.3  1992/10/28  20:21:42  koziol
  6. # Updated for v3.2r2
  7. #
  8. # Revision 1.2  1992/09/17  19:43:59  koziol
  9. # Included Mike's changes to make Prototypes work on the Convex
  10. #
  11. # Revision 1.1  1992/08/25  21:40:44  koziol
  12. # Initial revision
  13. #
  14. #
  15. # ##################################################################
  16. #
  17. #                   NCSA HDF Version 3.2 release 2
  18. #                          October 1992
  19. #
  20. #           MAKEFILE for creating the HDF library, libdf.a,
  21. #
  22. # This makefile creates the following FORTRAN and C interfaces 
  23. # for HDF in a library called "libdf.a": 
  24. #
  25. #              DFR8   (8-bit raster image sets)
  26. #              DF24   (24-bit raster image sets)
  27. #              DFP    (palettes)
  28. #              DFSD   (scientific data sets)
  29. #              DFAN   (annotations)
  30. #              V      (vsets)
  31. #
  32. # See the file INSTALL for further information on how to invoke
  33. # this makefile.
  34. #
  35. # This release of HDF marks the first use of a new set of lower
  36. # level routines.  The makefile also creates these interfaces,
  37. # which are available in C only.  These routines are categorized 
  38. # as follows:
  39. #
  40. #              H      (new lower level i/o)
  41. #              DF     (emulation of old lower level i/o routines)
  42. #              HD     (lower level utilities for developers)
  43. #              HE     (lower level error-handling)
  44. #              HD     (lower level utilities, for developers)
  45. #              DFK    (conversion routines)
  46. #
  47. # ##################################################################
  48. #
  49. #
  50. # PORTING INSTRUCTIONS
  51. # You must modify the lines marked "# ==>".
  52. #
  53. #
  54. # These values will typically be over ridden by values passed 
  55. #   down from the top level HDF makefile
  56. #
  57. #
  58.  
  59. # ==> specify your machine
  60. MACHINE=SUN
  61.  
  62. # ==> specify directories in which to store HDF include files,
  63. #     HDF library, and HDF utilities
  64. HDFINC=../include
  65. HDFLIB=../lib
  66. HDFBIN=../bin
  67.  
  68. # ==> specify your FORTRAN compiler (Convex: fc)
  69. FC=f77
  70. FFLAGS= -g
  71.  
  72. # ==> specify your C compiler
  73. CC=cc
  74. CFLAGS=  -g -D${MACHINE}
  75.  
  76. # ==> For the IRIS and INDIGO, uncomment the following line
  77. #CFLAGS=  -g -D${MACHINE} -ansi
  78.  
  79. # ==> where are your hdf.h, hdfi.h and vg.h files located?
  80. #IFLAGS=   -I../h -I.
  81.  
  82. #BDIR=../backup
  83.  
  84. # ==> specify your archiver
  85. AR=ar
  86. ARFLAGS=r
  87.  
  88. # ==> specify your archive randomizer (if needed, see below)
  89. RANLIB=ranlib
  90.  
  91. # ==> The IRIS does not have ranlib.  Instead, it uses the 's' flag to $(AR)
  92. # ==> Uncomment the following lines for the IRIS or INDIGO platforms
  93. #ARFLAGS=rs
  94. #RANLIB=echo "AR substitied for RANLIB on library"
  95.  
  96. # ==> The HP 9000 does not need ranlib. Uncomment the following line
  97. #RANLIB=touch
  98.  
  99. RM=/bin/rm
  100. RMFLAGS=-f
  101. LINTFLAGS=
  102. SHAR=shar
  103. ARCHIVE=hdf.shar
  104.  
  105. HDRS=hfile.h hdf.h hdfi.h herr.h hproto.h dfan.h dfrig.h dfgr.h dfsd.h \
  106.      dfgroup.h dfconvrt.h vg.h df.h dfi.h dfstubs.h dfufp2i.h vproto.h 
  107.  
  108. CSRCS=hfile.c herr.c hblocks.c hextelt.c hkit.c dfan.c dfr8.c dfcomp.c \
  109.       dfimcomp.c dfp.c dfgr.c df24.c dfsd.c dfgroup.c dfconv.c dfufp2i.c  \
  110.       vg.c vrw.c vio.c vparse.c vconv.c vsfld.c vgp.c vhi.c     \
  111.       dfutil.c dfstubs.c
  112.  
  113. COBJS=hfile.o herr.o hblocks.o hextelt.o hkit.o dfan.o dfr8.o dfcomp.o \
  114.       dfimcomp.o dfp.o dfgr.o df24.o dfsd.o dfgroup.o dfconv.o dfufp2i.o  \
  115.       vg.o vrw.o vio.o vparse.o vconv.o vsfld.o vgp.o vhi.o     \
  116.       dfutil.o dfstubs.o
  117.  
  118. FSRCS=hfilef.c herrf.c hfileff.f dfanf.c dfr8f.c dfpf.c df24f.c dfsdf.c \
  119.       vgf.c dff.c dfanff.f df24ff.f dfpff.f dfr8ff.f dfsdff.f vgff.f dfff.f \
  120.       dfutilf.c dfufp2if.f
  121.  
  122. FOBJS=hfilef.o herrf.o hfileff.o dfanf.o dfr8f.o dfpf.o df24f.o dfsdf.o \
  123.       vgf.o dff.o dfanff.o df24ff.o dfpff.o dfr8ff.o dfsdff.o vgff.o dfff.o \
  124.       dfutilf.o dfufp2if.o
  125.  
  126.  
  127. .c.o:
  128.     $(CC) $(CFLAGS) -c $<
  129.  
  130. .f.o:
  131.     $(FC) $(FFLAGS) -c $<
  132.  
  133. all: libdf.a install_it
  134.  
  135. libdf.a: $(COBJS) $(FOBJS)
  136.     -$(RM) libdf.a
  137.     $(AR) $(ARFLAGS) libdf.a $(COBJS) $(FOBJS)
  138.     $(RANLIB) libdf.a
  139.  
  140. libnofortran: $(COBJS)
  141.     -$(RM) libdf.a
  142.     $(AR) $(ARFLAGS) libdf.a $(COBJS)
  143.     $(RANLIB) libdf.a
  144.  
  145. nofortran: libnofortran install_it
  146.  
  147. libnostub: nofortran
  148.  
  149. saber:
  150.     #load -D$(MACHINE) $(CSRCS) $(TSRCS) -lc
  151.  
  152. hfile.o: hfile.h hdf.h herr.h hproto.h hdfi.h
  153.  
  154. herr.o: hdf.h herr.h hproto.h hdfi.h
  155.  
  156. hblocks.o: hfile.h hdf.h herr.h hproto.h hdfi.h
  157.  
  158. hextelt.o: hfile.h hdf.h herr.h hproto.h hdfi.h
  159.  
  160. hkit.o: hfile.h hdf.h herr.h hproto.h  hdfi.h
  161.  
  162. dfan.o: hdf.h herr.h dfan.h hproto.h hdfi.h hfile.h
  163.  
  164. dfanf.o: hdf.h herr.h dfan.h hproto.h hdfi.h
  165.  
  166. dfr8.o: hdf.h herr.h dfrig.h hproto.h hdfi.h
  167.  
  168. dfr8f.o: hdf.h herr.h dfrig.h hproto.h hdfi.h
  169.  
  170. dfcomp.o: hdf.h herr.h dfrig.h hproto.h hdfi.h
  171.  
  172. dfimcomp.o: hdf.h herr.h dfrig.h hproto.h hdfi.h
  173.  
  174. dfp.o: hdf.h herr.h hproto.h hdfi.h
  175.  
  176. dfpf.o: hdf.h herr.h hproto.h hdfi.h
  177.  
  178. dfgr.o: hdf.h herr.h dfgr.h hproto.h hdfi.h
  179.  
  180. df24.o: hdf.h herr.h dfgr.h hproto.h hdfi.h
  181.  
  182. df24f.o: hdf.h herr.h dfgr.h hproto.h hdfi.h
  183.  
  184. dfsd.o: hdf.h herr.h dfsd.h hproto.h hdfi.h dfconvrt.h dfgroup.h hfile.h
  185.  
  186. dfsdf.o: hdf.h herr.h dfsd.h hproto.h hdfi.h
  187.  
  188. dfgroup.o: hdf.h herr.h hfile.h hproto.h hdfi.h
  189.  
  190. dfconv.o: hdf.h herr.h hdfi.h
  191.  
  192. dfutil.o: hdf.h herr.h hdfi.h
  193.  
  194. dfufp2i.o: hdf.h herr.h hdfi.h dfufp2i.h
  195.  
  196. vg.o: vg.h hdf.h hdfi.h
  197.  
  198. vgf.o: vg.h hdf.h hdfi.h
  199.  
  200. vrw.o: vg.h hdf.h hdfi.h
  201.  
  202. vio.o: vg.h hdf.h hdfi.h
  203.  
  204. vparse.o: vg.h hdf.h hdfi.h
  205.  
  206. vconv.o: vg.h hdf.h hdfi.h
  207.  
  208. vsfld.o: vg.h hdf.h hdfi.h
  209.  
  210. vgp.o: vg.h hdf.h hdfi.h hfile.h
  211.  
  212. vhi.o: vg.h hdf.h hdfi.h
  213.  
  214. dfstubs.o: hdf.h herr.h dfstubs.h df.h dfi.h hproto.h hdfi.h
  215.  
  216. dff.o: hdf.h herr.h dfstubs.h df.h dfi.h hproto.h hdfi.h
  217.  
  218. install_it:
  219.     -mkdir $(HDFINC)
  220.     -cp $(HDRS) $(HDFINC)
  221.     -mkdir $(HDFLIB)
  222.     -cp libdf.a $(HDFLIB)
  223.     -$(RANLIB) $(HDFLIB)/libdf.a
  224.  
  225. clean:
  226.     -$(RM) $(RMFLAGS) *.o
  227.  
  228. cleanup:
  229.     -$(RM) $(RMFLAGS) libdf.a 
  230.  
  231. lint: $(SRCS) $(R8SRCS)
  232.     $(LINT) $(LINTFLAGS) $(SRCS)
  233.  
  234. TAGS: $(SRCS) $(HDRS)
  235.     etags $(SRCS) $(HDRS)
  236.  
  237. #$(ARCHIVE): ChangeLog Makefile $(SRCS) $(HDRS) $(TSRCS) $(USRCS)
  238. #    $(RM) $(RMFLAGS) $(ARCHIVE)
  239. #    $(SHAR) $(ARCHIVE) ChangeLog Makefile $(SRCS) $(HDRS) \
  240. #        $(TSRCS) $(USRCS)
  241.  
  242. #archive: $(ARCHIVE)
  243.  
  244. #backup: ChangeLog Makefile $(SRCS) $(HDRS) $(TSRCS) $(USRCS)
  245. #    cp ChangeLog Makefile $(SRCS) $(HDRS) $(TSRCS) $(USRCS) $(BDIR)
  246.  
  247.  
  248.